'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/news', controller.news.index);
  router.get('/news/search/:word', controller.news.search);
  router.get('/news/pick/:year/:month/:date', controller.news.pick);
  router.get('/fly', controller.fly.index);
  router.post('/fly', controller.fly.index);
  router.get('/mp', controller.mp.verify);
  router.post('/mp', controller.mp.index);
};
